import json
import socket

request = {
    "method": "HelloService.Hello",
    "params": ["bobby"],
    "id": 0
}

client = socket.create_connection(("localhost", 1234))
client.sendall(json.dumps(request).encode())

rsp = client.recv(1024)
rsp = json.loads(rsp.decode())
print(rsp)